/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tubes1sister.peerConnection;

/**
 *
 * @author Muhammad Anis
 */
public class PeerInfo {
    //class yang berfungsi untuk menyimpan data dari peer yang akan dihubungi
    public String ip;
    public String port;
    public int indexPieces;
    public String nilaiHash;
    public String filename;
    public int pieceLenght;
    public int panjangFile;
    
    public PeerInfo(String ip,String port,int indexPieces,String nilaiHash,String filename,int pieceLength,int panjangFile){
        this.ip = ip;
        this.port = port;
        this.indexPieces = indexPieces;
        this.nilaiHash = nilaiHash;
        this.filename = filename;
        this.pieceLenght = pieceLength;
        this.panjangFile = panjangFile;
    }
}
